<html>
    <body onload="init()">
        <script type="text/javascript" src="ayuta.lang.js">
        </script>
        <script type="text/javascript">
            function init(){
                var Parent = new ayuta.Class({
                    initialize: function(){
                    	alert("I am parent");
                    },
					properties: [
						{name: "name"},
						{name: "nickNames", isArray: true}
					],
					greeting: function(name) {
						alert("Hello, " + name + ". I am " + this.getName());
					}
                });
				var Child = new ayuta.Class({
					parents: [Parent],
					initialize: function() {
						alert("I am child");
					}
				});
				var child = new Child();
				child.setName("たえこ");
				child.addNickNames("たえお", "しゅんぺいの夫", "つのだ");
				child.greeting("しゅんぺい");
				alert(child.getNickNames().join(","));
            }
        </script>
    </body>
</html>
